package com.tianya.domain.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import io.swagger.annotations.ApiModel;

@ApiModel("性别枚举")
public enum Gender {
    MALE(1, "男"),
    FEMALE(2, "女");
    @EnumValue
    private Integer code;
    private String message;
    Gender(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}